<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/9/20 15:30
 * Desc: 订单退款
 */
abstract class Contract_Api_Refund
{
    use Trait_Api_Image;

    use Trait_Api_Response;

    /**
     * 获取退款前置信息
     * @param $mid
     * @param $order_id
     * @return array
     * @throws Exception
     */
    abstract function check_refund($mid, $order_id): array;

    /**
     * 获取退款详情
     * @param $mid
     * @param $order_id
     * @return array
     * @throws Exception
     */
    abstract function get_info($mid, $order_id): array;

    /**
     * 退款申请
     * @param $mid
     * @param $params
     * @return array
     * @throws Exception
     */
    abstract function refund_apply($mid, $params): array;

    /**
     * 取消退款申请
     * @param $mid
     * @param $order_id
     * @return string //退款提示信息
     * @throws Exception
     */
    abstract function cancel_refund_apply($mid, $order_id): string;
}